export const ruleData = [
  {
    aggregation: "AND",
    attrs: [
      {
        attrId: 1,
        attrKey: "CURRENT_SPEED",
        attrName: "当前车速",
        attrType: "01",
        conditionId: 1,
        operator: "01",
      },
    ],
    checked: 0,
    conditionDesc: "告警时车速超过{}KM/h",
    conditionId: 1,
    conditionName: "告警时超速",
    conditionType: "01",
    parentConditionId: 0,
  },
  {
    aggregation: "AND",
    attrs: [
      {
        attrId: 2,
        attrKey: "ALARM_TIME",
        attrName: "告警时间",
        attrType: "02",
        conditionId: 2,
        operator: "02",
      },
      {
        attrId: 3,
        attrKey: "HISTORY_SPEED",
        attrName: "历史车速",
        attrType: "01",
        conditionId: 2,
        operator: "01",
      },
    ],
    checked: 0,
    conditionDesc: "告警前{}分钟车速超过{}KM/h",
    conditionId: 2,
    conditionName: "告警前超速",
    conditionType: "01",
    parentConditionId: 0,
  },
  {
    aggregation: "AND",
    attrs: [
      {
        attrId: 4,
        attrKey: "ALARM_TIME",
        attrName: "告警时间",
        attrType: "01",
        conditionId: 3,
        operator: "02",
      },
      {
        attrId: 5,
        attrKey: "ALARM_COUNT",
        attrName: "告警次数",
        attrType: "01",
        conditionId: 3,
        operator: "01",
      },
    ],
    checked: 0,
    conditionDesc: "告警频次超过{}分钟{}次",
    conditionId: 3,
    conditionName: "告警频次超限",
    conditionType: "01",
    parentConditionId: 0,
  },
  {
    aggregation: "AND",
    attrs: [
      {
        attrId: 6,
        attrKey: "DRIVE_TIME",
        attrName: "连续驾驶时间",
        attrType: "01",
        conditionId: 4,
        operator: "01",
      },
    ],
    checked: 0,
    conditionDesc: "连续驾驶超过{}分钟",
    conditionId: 4,
    conditionName: "连续驾驶超限",
    conditionType: "02",
    parentConditionId: 0,
  },
  {
    aggregation: "AND",
    attrs: [
      {
        attrId: 7,
        attrKey: "HANDLE_TIME",
        attrName: "人工处理时间",
        attrType: "01",
        conditionId: 5,
        operator: "01",
      },
    ],
    checked: 0,
    conditionDesc: "人工处理后{}分钟内再次告警",
    conditionId: 5,
    conditionName: "人工处理超限",
    conditionType: "03",
    parentConditionId: 0,
  },
  {
    aggregation: "AND",
    attrs: [
      {
        attrId: 8,
        attrKey: "ALARM_TIME",
        attrName: "告警时间",
        attrType: "01",
        conditionId: 6,
        operator: "02",
      },
    ],
    checked: 0,
    children: [
      {
        aggregation: "OR",
        attrs: [
          {
            attrId: 9,
            attrKey: "ALARM_TYPE",
            attrName: "风险事件",
            attrType: "03",
            conditionId: 7,
            operator: "03",
            attrValue: "303",
            options: [
              {
                attrId: 9,
                optionId: 1,
                optionName: "抽烟",
                optionValue: "303",
              },
              {
                attrId: 9,
                optionId: 2,
                optionName: "接打电话",
                optionValue: "304",
              },
              {
                attrId: 9,
                optionId: 3,
                optionName: "分神驾驶",
                optionValue: "302",
              },
              {
                attrId: 9,
                optionId: 4,
                optionName: "疲劳驾驶",
                optionValue: "301",
              },
              {
                attrId: 9,
                optionId: 5,
                optionName: "前向碰撞",
                optionValue: "103",
              },
              {
                attrId: 9,
                optionId: 6,
                optionName: "车距过近",
                optionValue: "104",
              },
              {
                attrId: 9,
                optionId: 7,
                optionName: "车道偏离",
                optionValue: "105",
              },
              {
                attrId: 9,
                optionId: 8,
                optionName: "行人碰撞",
                optionValue: "106",
              },
            ],
          },
          {
            attrId: 10,
            attrKey: "RISK_LEVEL",
            attrName: "风险等级",
            attrType: "03",
            conditionId: 7,
            operator: "03",
            attrValue: "1",
            options: [
              {
                attrId: 10,
                optionId: 9,
                optionName: "高风险",
                optionValue: "1",
              },
              {
                attrId: 10,
                optionId: 10,
                optionName: "中风险",
                optionValue: "2",
              },
              {
                attrId: 10,
                optionId: 11,
                optionName: "低风险",
                optionValue: "3",
              },
            ],
          },
        ],
        checked: 0,
        conditionDesc: "{}{}",
        conditionId: 7,
        conditionName: "抽烟",
        conditionType: "01",
        parentConditionId: 6,
      },
      {
        aggregation: "OR",
        attrs: [
          {
            attrId: 11,
            attrKey: "ALARM_TYPE",
            attrName: "风险事件",
            attrType: "03",
            conditionId: 8,
            operator: "03",
            attrValue: "304",
            options: [
              {
                attrId: 11,
                optionId: 12,
                optionName: "抽烟",
                optionValue: "303",
              },
              {
                attrId: 11,
                optionId: 13,
                optionName: "接打电话",
                optionValue: "304",
              },
              {
                attrId: 11,
                optionId: 14,
                optionName: "分神驾驶",
                optionValue: "302",
              },
              {
                attrId: 11,
                optionId: 15,
                optionName: "疲劳驾驶",
                optionValue: "301",
              },
              {
                attrId: 11,
                optionId: 16,
                optionName: "前向碰撞",
                optionValue: "103",
              },
              {
                attrId: 11,
                optionId: 17,
                optionName: "车距过近",
                optionValue: "104",
              },
              {
                attrId: 11,
                optionId: 18,
                optionName: "车道偏离",
                optionValue: "105",
              },
              {
                attrId: 11,
                optionId: 19,
                optionName: "行人碰撞",
                optionValue: "106",
              },
            ],
          },
          {
            attrId: 12,
            attrKey: "RISK_LEVEL",
            attrName: "风险等级",
            attrType: "03",
            conditionId: 8,
            operator: "03",
            attrValue: "1",
            options: [
              {
                attrId: 12,
                optionId: 20,
                optionName: "高风险",
                optionValue: "1",
              },
              {
                attrId: 12,
                optionId: 21,
                optionName: "中风险",
                optionValue: "2",
              },
              {
                attrId: 12,
                optionId: 22,
                optionName: "低风险",
                optionValue: "3",
              },
            ],
          },
        ],
        checked: 0,
        conditionDesc: "{}{}",
        conditionId: 8,
        conditionName: "接打电话",
        conditionType: "01",
        parentConditionId: 6,
      },
      // {
      //   aggregation: "OR",
      //   checked: 0,
      //   conditionDesc: "{}{}",
      //   conditionId: 9,
      //   conditionName: "分神驾驶",
      //   conditionType: "01",
      //   parentConditionId: 6,
      // },
      // {
      //   aggregation: "OR",
      //   checked: 0,
      //   conditionDesc: "{}{}",
      //   conditionId: 10,
      //   conditionName: "疲劳驾驶",
      //   conditionType: "01",
      //   parentConditionId: 6,
      // },
      // {
      //   aggregation: "OR",
      //   checked: 0,
      //   conditionDesc: "{}{}",
      //   conditionId: 11,
      //   conditionName: "前向碰撞",
      //   conditionType: "01",
      //   parentConditionId: 6,
      // },
      // {
      //   aggregation: "OR",
      //   checked: 0,
      //   conditionDesc: "{}{}",
      //   conditionId: 12,
      //   conditionName: "车距过近",
      //   conditionType: "01",
      //   parentConditionId: 6,
      // },
      // {
      //   aggregation: "OR",
      //   checked: 0,
      //   conditionDesc: "{}{}",
      //   conditionId: 13,
      //   conditionName: "车道偏离",
      //   conditionType: "01",
      //   parentConditionId: 6,
      // },
      // {
      //   aggregation: "OR",
      //   checked: 0,
      //   conditionDesc: "{}{}",
      //   conditionId: 14,
      //   conditionName: "行人碰撞",
      //   conditionType: "01",
      //   parentConditionId: 6,
      // },
    ],
    conditionDesc: "告警前{}分钟 出现以下告警",
    conditionId: 6,
    conditionName: "告警前出现告警",
    conditionType: "01",
    parentConditionId: 0,
  },
];

export const carList = [
  {
    companyId: '01',
    companyName: '公司1',
    fleets: [
      {
        fleetId: '02',
        fleetName: '北京车队1',
        vehicles: [
          {
            vehicleId: '03',
            plateNo: '京A12345'
          },
          {
            vehicleId: '04',
            plateNo: '京A12346'
          },
          {
            vehicleId: '05',
            plateNo: '京A12347'
          }
        ]
      },
      {
        fleetId: '06',
        fleetName: '北京车队2',
        vehicles: [
          {
            vehicleId: '07',
            plateNo: '京A12348'
          },
          {
            vehicleId: '08',
            plateNo: '京A12349'
          },
        ]
      }
    ]
  },
  {
    companyId: '09',
    companyName: '公司2',
    fleets: [
      {
        fleetId: '10',
        fleetName: '车队1',
        vehicles: [
          {
            vehicleId: '11',
            plateNo: '津A12345'
          },
          {
            vehicleId: '12',
            plateNo: '津A12346'
          },
          {
            vehicleId: '13',
            plateNo: '津A12347'
          }
        ]
      }
    ]
  },
  {
    companyId: '14',
    companyName: '公司3',
    fleets: [
      {
        fleetId: '15',
        fleetName: '车队1',
        vehicles: [
          {
            vehicleId: '16',
            plateNo: '沪A12345'
          },
          {
            vehicleId: '17',
            plateNo: '沪A12346'
          },
          {
            vehicleId: '18',
            plateNo: '沪A12346'
          },
          {
            vehicleId: '19',
            plateNo: '沪A12346'
          }
        ]
      }
    ]
  }
]